package com.ds.infrastructure.hyperspace.console.dao.dao;

import com.ds.infrastructure.hyperspace.console.dao.mapper.TbDeployConfigMapper;
import com.ds.infrastructure.hyperspace.console.entity.page.TbPageWhere;
import com.ds.infrastructure.hyperspace.console.entity.table.TbDeployConfig;
import com.ds.infrastructure.hyperspace.console.entity.where.TbCustomWhere;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: yaozhendong
 * @create: 2019-10-21 11:44
 **/

@Repository
public class TbDeployConfigDao {
    @Autowired
    TbDeployConfigMapper tbDeployConfigMapper;

    public TbDeployConfig selectByPrimaryKey(Long id) {
        return tbDeployConfigMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TbDeployConfig record) {
        return tbDeployConfigMapper.updateByPrimaryKeySelective(record);
    }

    public int insertSelective(TbDeployConfig record) {
        return tbDeployConfigMapper.insertSelective(record);
    }

    public List<TbDeployConfig> selectListForPage(TbDeployConfig where, TbCustomWhere mapWhere, TbPageWhere pageWhere) {
        return tbDeployConfigMapper.selectListForPage(where, mapWhere, pageWhere);
    }

    public int selectListForPageCount(TbDeployConfig where, TbCustomWhere mapWhere) {
        return tbDeployConfigMapper.selectListForPageCount(where, mapWhere);
    }

    public Integer selectMaxForConfigVersion(TbDeployConfig where, TbCustomWhere mapWhere) {
        return tbDeployConfigMapper.selectMaxForConfigVersion(where, mapWhere);
    }

    public int updateWithTimestamp(TbDeployConfig record) {
        return tbDeployConfigMapper.updateWithTimestamp(record);
    }
}
